package com.example.spring2.pk3MultConfigService;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class MultiConfigService {

    @Value("${spring.data.redis.host}")
    private String redisHostName;

    @Value("${spring.datasource.url}")
    private String jdbcUrl;

    public void printSql(){
        System.out.println("redisHostName ，jdbcUrl = " + redisHostName + "," + jdbcUrl);
    }
}
